package com.yjh.auth;

import annotation.EnablePigxFeignClients;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;


@EnableEurekaServer
@EnableResourceServer
@EnableFeignClients
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class,
        ManagementWebSecurityAutoConfiguration.class})

@EnableDiscoveryClient
@MapperScan(basePackages={"com.yjh.auth.*"})
@EntityScan(basePackages={"com.yjh.auth.*"})
@EnableAsync
public class HdssAuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(HdssAuthApplication.class, args);
    }

}
